from tkinter import *
import turtle


root = Tk()
cv = Canvas(root, width=500, height=500)
cv.pack()
length = 2
screen = turtle.TurtleScreen(cv)
t = turtle.RawTurtle(screen)
t.hideturtle()
for i in range(4 * 10):
    t.forward(length)
    t.left(91)
    length += 4
root.mainloop()

